extends BulletHitEffect



@export var normal_scale := Vector2(1, 1)
@export var critical_scale := Vector2(1.5, 1.5)



func _ready() -> void:
    DamageSystem.apply_damage.connect(
        func(info: DamageInfo) -> void:
            if not info.is_critical: 
                scale = normal_scale
                return
            scale = critical_scale
    )



func setup(data: Dictionary) -> void:
    super.setup(data)
    modulate = data.get("attr_color", modulate)
